package cn.koala.key.complaint.entity.enums;

import cn.koala.key.common.enums.HasCaption;
import cn.koala.key.common.enums.HasCode;

public enum ComplaintValidEnum implements HasCode, HasCaption {
//是否有效

    EFFECTIVE(1, "有效"),
    UN_EFFECTIVE(2, "无效")
    ;

    private Integer code;

    private String caption;

    ComplaintValidEnum(Integer code, String caption) {
        this.code = code;
        this.caption = caption;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getCaption() {
        return caption;
    }
}
